<div class="layui-fluid layui-anim website-anim-up" id="website-home" lay-title="系统首页">
    <div class="layui-row">
        <div class="layui-inline layui-col-xs5 layui-col-sm5 layui-col-md12">
            <span>承诺书内容：</span>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="context" readonly id="context"
                          autocomplete="off">[[${commitment != null ? commitment.context :'暂无承诺书，请直接提交'}]]</textarea>
            </div>
        </div>
    </div>
</div>
<script data-th-inline="none" type="text/javascript">
    layui.use(['jquery', 'website'], function () {
        let $ = layui.jquery,
            website = layui.website,
            form = layui.form,
            context = $('#context')[0]
        ;
        context.style.height = context.scrollHeight + 'px';

    })
</script>

<style>
    #context {
        border: none;
    }

    #context:focus {
        border-color: transparent !important;
        box-shadow: 0 0 0 0 transparent;
    }
</style>